class Date {
	private int year;
	private int month;
	private int day;
	public Date(int year,int month,int day){
		this.year=year;
		this.month=month;
		this.day=day;
	}
	public int getyear(){return year;}
	public void setyaer(int year){ this.year=year; }
	public int getmonth(){return month;}
	public void setmonth(int month){ this.month=month; }
	public int getday(){return day;}
	public void setday(int day){ this.day=day; }
	public void riqi(){
		System.out.println(year+"-"+month+"-"+day);
	}
}

